<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Space Manager: &lt;cpCCNodeProtocol&gt; Protocol Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Space Manager
   &#160;<span id="projectnumber">0.2.0</span>
   </div>
   <div id="projectbrief">Objective-C wrapper around chipmunk</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.2 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('protocolcp_c_c_node_protocol-p.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Properties</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Instance Methods</a> &#124;
<a href="#properties">Properties</a> &#124;
<a href="protocolcp_c_c_node_protocol-p-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">&lt;cpCCNodeProtocol&gt; Protocol Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#import &lt;<a class="el" href="cp_c_c_node_impl_8h_source.html">cpCCNodeImpl.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for &lt;cpCCNodeProtocol&gt;:</div>
<div class="dyncontent">
 <div class="center">
  <img src="protocolcp_c_c_node_protocol-p.png" usemap="#&lt;cpCCNodeProtocol&gt;_map" alt=""/>
  <map id="&lt;cpCCNodeProtocol&gt;_map" name="&lt;cpCCNodeProtocol&gt;_map">
<area href="interfacecp_c_c_node.html" alt="cpCCNode" shape="rect" coords="0,112,135,136"/>
<area href="interfacecp_c_c_node_impl.html" alt="cpCCNodeImpl" shape="rect" coords="145,112,280,136"/>
<area href="interfacecp_c_c_sprite.html" alt="cpCCSprite" shape="rect" coords="290,112,425,136"/>
<area href="interfacecp_shape_node.html" alt="cpShapeNode" shape="rect" coords="0,168,135,192"/>
<area href="interfacecp_shape_texture_node.html" alt="cpShapeTextureNode" shape="rect" coords="0,224,135,248"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Instance Methods</h2></td></tr>
<tr class="memitem:a1a786cb21d273cac31c0a6cd18df79fc"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="protocolcp_c_c_node_protocol-p.html#a1a786cb21d273cac31c0a6cd18df79fc">applyImpulse:</a></td></tr>
<tr class="separator:a1a786cb21d273cac31c0a6cd18df79fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7a21337b4c211cdbde5cc69e21b12498"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="protocolcp_c_c_node_protocol-p.html#a7a21337b4c211cdbde5cc69e21b12498">applyImpulse:offset:</a></td></tr>
<tr class="separator:a7a21337b4c211cdbde5cc69e21b12498"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1fe3a631bd5f54bd57a3362256ac1a84"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="protocolcp_c_c_node_protocol-p.html#a1fe3a631bd5f54bd57a3362256ac1a84">applyForce:</a></td></tr>
<tr class="separator:a1fe3a631bd5f54bd57a3362256ac1a84"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a44a817875dcf5dad66155c71c9e4620d"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="protocolcp_c_c_node_protocol-p.html#a44a817875dcf5dad66155c71c9e4620d">applyForce:offset:</a></td></tr>
<tr class="separator:a44a817875dcf5dad66155c71c9e4620d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae7b2ab2618379f01b86b60bdb20b758d"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="protocolcp_c_c_node_protocol-p.html#ae7b2ab2618379f01b86b60bdb20b758d">resetForces</a></td></tr>
<tr class="separator:ae7b2ab2618379f01b86b60bdb20b758d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="properties"></a>
Properties</h2></td></tr>
<tr class="memitem:a1a30cbc3b1e10bfd045324e304d32332"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="protocolcp_c_c_node_protocol-p.html#a1a30cbc3b1e10bfd045324e304d32332">ignoreRotation</a></td></tr>
<tr class="separator:a1a30cbc3b1e10bfd045324e304d32332"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae7a172a6d45da0e5e47245ac4100293d"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="protocolcp_c_c_node_protocol-p.html#ae7a172a6d45da0e5e47245ac4100293d">autoFreeShapeAndBody</a></td></tr>
<tr class="separator:ae7a172a6d45da0e5e47245ac4100293d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a127e70d997e4eca25473a345613f455e"><td class="memItemLeft" align="right" valign="top">cpFloat&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="protocolcp_c_c_node_protocol-p.html#a127e70d997e4eca25473a345613f455e">integrationDt</a></td></tr>
<tr class="separator:a127e70d997e4eca25473a345613f455e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a089acc343420f491eec83e624b853e55"><td class="memItemLeft" align="right" valign="top">cpShape *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="protocolcp_c_c_node_protocol-p.html#a089acc343420f491eec83e624b853e55">shape</a></td></tr>
<tr class="separator:a089acc343420f491eec83e624b853e55"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a41dde45e96c5fc62df084108b368ee3c"><td class="memItemLeft" align="right" valign="top">NSArray *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="protocolcp_c_c_node_protocol-p.html#a41dde45e96c5fc62df084108b368ee3c">shapes</a></td></tr>
<tr class="separator:a41dde45e96c5fc62df084108b368ee3c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a82699ec9e5e4e233996dcce832b7a7ee"><td class="memItemLeft" align="right" valign="top">cpBody *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="protocolcp_c_c_node_protocol-p.html#a82699ec9e5e4e233996dcce832b7a7ee">body</a></td></tr>
<tr class="separator:a82699ec9e5e4e233996dcce832b7a7ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af0e8dcd9135bb0586d5738f2b7b81ba3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="interface_space_manager.html">SpaceManager</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="protocolcp_c_c_node_protocol-p.html#af0e8dcd9135bb0586d5738f2b7b81ba3">spaceManager</a></td></tr>
<tr class="separator:af0e8dcd9135bb0586d5738f2b7b81ba3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Our protocol that our CocosNode objects follow, these include: -cpSprite -cpShapeNode -cpAtlasSprite </p>
</div><h2 class="groupheader">Method Documentation</h2>
<a class="anchor" id="a1fe3a631bd5f54bd57a3362256ac1a84"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (void) applyForce: </td>
          <td></td>
          <td class="paramtype">(cpVect)&#160;</td>
          <td class="paramname"><em>force</em></td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">optional</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a44a817875dcf5dad66155c71c9e4620d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (void) <a class="el" href="protocolcp_c_c_node_protocol-p.html#a1fe3a631bd5f54bd57a3362256ac1a84">applyForce:</a> </td>
          <td></td>
          <td class="paramtype">(cpVect)&#160;</td>
          <td class="paramname"><em>force</em></td>
        </tr>
        <tr>
          <td class="paramkey">offset:</td>
          <td></td>
          <td class="paramtype">(cpVect)&#160;</td>
          <td class="paramname"><em>offset</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">optional</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Reimplemented in <a class="el" href="interfacecp_c_c_node_impl.html#af9f066005df408aeaf3cde8b4c5cb9a6">cpCCNodeImpl</a>.</p>

</div>
</div>
<a class="anchor" id="a1a786cb21d273cac31c0a6cd18df79fc"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (void) applyImpulse: </td>
          <td></td>
          <td class="paramtype">(cpVect)&#160;</td>
          <td class="paramname"><em>impulse</em></td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">optional</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a7a21337b4c211cdbde5cc69e21b12498"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (void) <a class="el" href="protocolcp_c_c_node_protocol-p.html#a1a786cb21d273cac31c0a6cd18df79fc">applyImpulse:</a> </td>
          <td></td>
          <td class="paramtype">(cpVect)&#160;</td>
          <td class="paramname"><em>impulse</em></td>
        </tr>
        <tr>
          <td class="paramkey">offset:</td>
          <td></td>
          <td class="paramtype">(cpVect)&#160;</td>
          <td class="paramname"><em>offset</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">optional</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Reimplemented in <a class="el" href="interfacecp_c_c_node_impl.html#ad694bdcf1ed600ab159319cb679c6f8e">cpCCNodeImpl</a>.</p>

</div>
</div>
<a class="anchor" id="ae7b2ab2618379f01b86b60bdb20b758d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (void) resetForces </td>
          <td></td>
          <td class="paramname"></td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">optional</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Reimplemented in <a class="el" href="interfacecp_c_c_node_impl.html#acbf87a5f3b22cadf8272564b73eb63a2">cpCCNodeImpl</a>.</p>

</div>
</div>
<h2 class="groupheader">Property Documentation</h2>
<a class="anchor" id="ae7a172a6d45da0e5e47245ac4100293d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (BOOL) autoFreeShapeAndBody</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">write</span><span class="mlabel">nonatomic</span><span class="mlabel">assign</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Set this to true if you want the shape and/or body to be free'd when we're released </p>

</div>
</div>
<a class="anchor" id="a82699ec9e5e4e233996dcce832b7a7ee"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (cpBody*) body</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">write</span><span class="mlabel">nonatomic</span><span class="mlabel">assign</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>The body, if any, that we're connected to. You may have a body with no shape set </p>

</div>
</div>
<a class="anchor" id="a1a30cbc3b1e10bfd045324e304d32332"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (BOOL) ignoreRotation</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">write</span><span class="mlabel">required</span><span class="mlabel">nonatomic</span><span class="mlabel">assign</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Set this if you don't want this object to sync with the body's rotation </p>

</div>
</div>
<a class="anchor" id="a127e70d997e4eca25473a345613f455e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (cpFloat) integrationDt</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">write</span><span class="mlabel">nonatomic</span><span class="mlabel">assign</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>If this is anything other than zero, a position change will update the shapes velocity using integrationDt to calculate it </p>

</div>
</div>
<a class="anchor" id="a089acc343420f491eec83e624b853e55"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (cpShape*) shape</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">write</span><span class="mlabel">nonatomic</span><span class="mlabel">assign</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>The shape, if any, that we're connected to. Setting this will also set the body </p>

</div>
</div>
<a class="anchor" id="a41dde45e96c5fc62df084108b368ee3c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (NSArray*) shapes</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">nonatomic</span><span class="mlabel">assign</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>The shapes, each wrapped in an NSValue, that our body is connected to </p>

</div>
</div>
<a class="anchor" id="af0e8dcd9135bb0586d5738f2b7b81ba3"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (<a class="el" href="interface_space_manager.html">SpaceManager</a>*) spaceManager</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">write</span><span class="mlabel">nonatomic</span><span class="mlabel">assign</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>If autoFreeShapeAndBody is set, then this must be set too </p>

</div>
</div>
<hr/>The documentation for this protocol was generated from the following file:<ul>
<li>src/ccExtras/<a class="el" href="cp_c_c_node_impl_8h_source.html">cpCCNodeImpl.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="protocolcp_c_c_node_protocol-p.html">cpCCNodeProtocol</a></li>
    <li class="footer">Generated on Sun Sep 16 2012 13:09:50 for Space Manager by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.2 </li>
  </ul>
</div>
</body>
</html>
